GM.Name 	= "Race"
GM.Author 	= "AzuiSleet"
GM.Email 	= ""
GM.Website 	= ""

GM.Path		= "race/gamemode"

function GM:LoadAll(folder, noinclude, noadd)
	local path = {GM.Path, folder, "*.lua"}

	for k,v in ipairs( file.FindInLua(table.concat(path, "/")) ) do
		local file = folder .. "/" .. v

		if SERVER && !noadd then
			print("Added " .. folder .. " file: " .. v)
			AddCSLuaFile( file )
		end

		if CLIENT || (SERVER && !noinclude) then
			print("Included " .. folder .. " file: " .. v)
			include( file )
		end
	end
end

print("GAMEMODE INITIALIZATION")
GM:LoadAll("shared")
GM:LoadAll("client", true)

if SERVER then
	GM:LoadAll("server", false, true)
end

print("GAMEMODE LOADED")